package com.rrjjg.app.admin.data.storage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 角色服务对应表
 * </p>
 *
 * @author vayne
 * @since 2023-04-14
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ROLE_PRO")
@ApiModel(value = "RolePro对象", description = "角色服务对应表")
public class RolePro implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("平台id")
    @TableField("p_id")
    private Long pId;

    @ApiModelProperty("平台名称")
    @TableField("p_name")
    private String pName;

    @ApiModelProperty("服务名称")
    @TableField("s_name")
    private String sName;

    @ApiModelProperty("服务编码")
    @TableField("s_code")
    private String sCode;

    @ApiModelProperty("服务id")
    @TableField("s_id")
    private Long sId;

    @ApiModelProperty("角色名称")
    @TableField("role_id")
    private Long roleId;
}
